<%@ page title="" language="C#" masterpagefile="~/RealtimeSite.master" autoeventwireup="true" inherits="Temprature_Reportold, App_Web_odyrwiur" enableeventvalidation="false" %>

  <%@ Register Assembly="Heidarpour.WebControlUI" Namespace="Heidarpour.WebControlUI"
    TagPrefix="rhp" %>
<%@ Register   Assembly="AjaxControlToolkit"
    Namespace="AjaxControlToolkit"
    TagPrefix="AjaxControlToolkit" %>
    <%@ Register   Assembly="AjaxControlToolkit"
    Namespace="AjaxControlToolkit"
    TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" Runat="Server">
    <style type="text/css">

.green-colour{
background-color:#8dc234;
font-family:Tahoma;
font-size:17px;
padding-left:4px;
color:#ffffff;
margin:2px;
text-decoration:none;
font-weight:bold;
}
.checktext
{
    font-size:18px;
    color:Red;
    font-weight:bold;
    }
.user{
font-family:Tahoma;
font-size:12px;
color:#124c56;
margin:4px;
text-decoration:none;

}
                        .card [class*=card-header-]:not(.card-header-icon):not(.card-header-text):not(.card-header-image) {
    border-radius: 3px;
      margin-top: -37px;
    padding: 7px !important;
}
.table>tbody>tr>td, .table>tbody>tr>th, .table>tfoot>tr>td, .table>tfoot>tr>th, .table>thead>tr>td, .table>thead>tr>th {
    padding: 8px 8px !important;
    vertical-align: middle;
    border-color: #ddd;
}
#MainContent_lblSelectMonth
{
      font-size:13px;
    font-weight:bold; 
}
.card-body label
{
    font-weight:600 !important;
}
.table tr:nth-child(3) {
    background:gray !important;
    color:#fff !important;
    font-weight:900 !important;
 
}
.table tr:nth-child(1) {
  position:fixed !important;
 top:260px !important; 
 
}
.table tr:nth-child(2) {
  position:fixed !important;
 top:290px !important; 
 
}
        </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" Runat="Server">
    
          <div class="main-panel">
        <div class="content">
        <div class="container" id="approvemanualpunch" runat="server">
  <div class="row dash-pane2">	

  <div class="card">
                <div class="card-header card-header-warning">
                  <h4 class="card-title"><i class="fa fa-list fa-fw"></i><asp:Label ID="lblGPSPunchListWithLocation" runat="server" Text="Employee Wise Temprature Report"></asp:Label>
                  &nbsp;
                                    
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
                                    </h4>
                </div>
                <div class="card-body table-responsive" >
                  
            <div class="row">
            <div class="col-lg-6">
             <asp:Label 
                                        ID="lblSelectMonth" runat="server" Text="Select Report Date" ></asp:Label>
                         
                          <asp:Panel ID="Panel6" runat="server" Visible="false">
                            <rhp:DatePicker ID="txtdate1" runat="server" DatePersian="" CalendarType="Persian"  
        BorderColor="#CCCCCC" BorderStyle="Solid" BorderWidth="1px" ShowWeekNumbers="True" 
        FirstDayOfWeek="Monday" ShowOthers="True" AutoPostBack="True" ontextchanged="txtdate1_TextChanged" ></rhp:DatePicker>
                            </asp:Panel>

                                 <asp:TextBox ID="txtdate" runat="server"  CssClass="form-control"  
                                      AutoPostBack="True" ontextchanged="txtdate_TextChanged"
           
                   />
            <cc1:calendarextender ID="cal1" runat="server" TargetControlID="txtdate" Format="MM/dd/yyyy"  />
            </div>
            <div class="col-lg-3" style="margin-top:30px;">
            <%--<asp:CheckBox ID="CheckBox1" runat="server" AutoPostBack="True" 
                                        oncheckedchanged="CheckBox1_CheckedChanged" Text="Select All/Un-Select ALL" />--%>

                                             <asp:Label 
                                        ID="Label31" runat="server" Text="Total Record:"  CssClass="checktext" ></asp:Label>
                                                                                     <asp:Label 
                                        ID="Label1" runat="server" Text="0"  CssClass="checktext" ></asp:Label>


            </div>
           <%-- <div class="col-lg-3" style="margin-top:30px;">
            <asp:Label 
                                        ID="Label3" runat="server" Text="Label" Visible="False"></asp:Label>
                                        <asp:CheckBox ID="CheckBox2" runat="server" AutoPostBack="True" 
                                        Text="GPG Punch With Photo" Checked="True" 
                                        oncheckedchanged="CheckBox2_CheckedChanged" />
            </div>--%>
            </div>

            <br />
               <div class="row" style="margin-left:0px; margin-right:0px; margin-bottom:100px;">  
               <div class="table-responsive">       
                             <asp:GridView ID="Grid1" runat="server" class="table table-bordered table-hover table-striped" style="height:200px; overflow:auto" 

HeaderStyle-CssClass="FixedHeader"
          AutoGenerateColumns="False"    ondatabound="Grid1_DataBound" onrowdatabound="Grid1_RowDataBound"  DataKeyNames="Tran_MachineRawPunchid" >
                                 
                                
         
          <Columns>
         
              <asp:TemplateField HeaderText="Select">
                  <HeaderStyle CssClass="tdsubcellheadingfont" ForeColor="Black" Height="21px" Width="30px" />
                  <ItemTemplate>
                      <asp:CheckBox ID="cbRows" runat="server"  />
                  </ItemTemplate>
                
              </asp:TemplateField>
               <asp:BoundField DataField="DeviceID" HeaderText="DeviceID" SortExpression="DeviceID"></asp:BoundField>
             
            
               <asp:BoundField DataField="Emp Name" HeaderText="Employee Name" SortExpression="Father Name"></asp:BoundField>
                <asp:BoundField DataField="Emp Code" HeaderText="Emp Code" SortExpression="Father Name">
               
            </asp:BoundField>

            

               <asp:BoundField DataField="branchName" HeaderText="Branch" SortExpression="Deptname">
              
            </asp:BoundField>
              
             <asp:BoundField DataField="Department" HeaderText="Department" SortExpression="Deptname">
              
            </asp:BoundField>
            
            <asp:BoundField DataField="Punch_Date" HeaderText="Punch_Date" SortExpression="Punch_Date">
                
            </asp:BoundField>


               <asp:BoundField DataField="Punch_Time" HeaderText="Punch_Time" SortExpression="Desig_Name">
                
            </asp:BoundField>

              <asp:BoundField DataField="Temp_In_Celsius" HeaderText="Temp in °C " SortExpression="Desig_Name">
                
            </asp:BoundField>

              <asp:BoundField DataField="Temp_In_Fahrenheit" HeaderText="Temp_In °F" SortExpression="Desig_Name">
                
            </asp:BoundField>

          <asp:TemplateField HeaderText="Image">
            <ItemTemplate>
                <asp:Image ID="Image1" runat="server" Height="100" Width="100" />
            </ItemTemplate>
        </asp:TemplateField>
              
             


           </Columns>
         
      


      </asp:GridView>
      </div>  
      </div>   
      <script type="text/javascript" src="jquery.min.js" ></script>
    <script type="text/javascript" src="quicksearch.js"></script>
    <script type="text/javascript">
        $(function () {
            $('.search_textbox').each(function (i) {
                $(this).quicksearch("[id*=Grid1] tr:not(:has(th))", {
                    'testQuery': function (query, txt, row) {
                        return $(row).children(":eq(" + i + ")").text().toLowerCase().indexOf(query[0].toLowerCase()) != -1;
                    }
                });
            });
        });
    </script>

  
                </div>
              </div>
              </div>
              <div class="row" style="margin-left:auto; margin-right:auto; display:table; margin-top:px; margin-bottom:0px;">
                             <asp:Button ID="Btnadd" runat="server" Text="Export Report"    onclientclick="return validate()"
        type="button" class="btn btn-success " onclick="Btnadd_Click" /><i class="fa fa-plus;"></i>&nbsp;&nbsp;
      
            <asp:Button ID="Button1" runat="server" type="button" Text="Close"  onclick="Button1_Click" 
           class="btn btn-danger"
           /><i  class="fa fa-trash-o;"></i>
              </div>
			
                          
                      
                       
                    </div>
				 </div> </div> </div>

                

                   <%--<script type="text/javascript">
                       function autoRefreshPage() {
                           window.location = window.location.href;
                       }
                       setInterval('autoRefreshPage()', 120000);
</script>--%>
</asp:Content>


